package com.example.tjava24.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@RestController
public class TestController {

    @RequestMapping("/list")
    public List<HashMap<String,Object>> getdata(){
        List<HashMap<String,Object>> list = new ArrayList<>();
        HashMap<String, Object> map = new HashMap<>();
        map.put("name", "yunan");
        map.put("img", "yunan.png");


        return list;
    }

}
